//
//  LDTHomeListCell.m
//  EPA
//
//  Created by lanou3g on 16/4/20.
//  Copyright © 2016年 浮夸. All rights reserved.
//

#import "LDTHomeListCell.h"

@interface LDTHomeListCell()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UIImageView *titleImageView;

@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;


@end

@implementation LDTHomeListCell

- (void)layoutSubviews
{
    self.titleLabel.text = self.model.title;
    [self.titleImageView sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
    self.contentLabel.text = self.model.content;
    
    self.nameLabel.text = self.model.name;
}

#pragma mark - 分享,评论,收藏点击事件

- (IBAction)didClickshareBtn:(UIButton *)sender
{
     NSLog(@"分享");
}

- (IBAction)didClickcommentsBtn:(UIButton *)sender
{
     NSLog(@"评论");
}

- (IBAction)didClickcollectionBtn:(UIButton *)sender
{
     NSLog(@"收藏");
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
